package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Mylistener {

    @RabbitListener(queues = "SADSADSAAAA")//声明当前方法是监听队列的监听器
    public void shouxiaoxi(String sss){

        System.out.println("收到了"+sss);
    }

}
